package com.blr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * ClassName: HelloController
 * Description:
 * Date: 2022/11/08 AM 11:15
 * <p>
 * project: codes
 * package: com.blr.controller
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Controller
public class HelloController {

    @PostMapping("/hello")
    @ResponseBody
    public String hello() {
        System.out.println("hello ok!");
        return "Hello ok";
    }

    @GetMapping("/index")
    public String index() {
        return "index";
    }
}
